PATH 
Mac OS 8 and 9 Developer Documentation > Text and Other International Services > Apple Type Services for Unicode Imaging (ATSUI) > Apple Type Services for Unicode Imaging Reference

     

ATSUCountFontVariations

Determines the number of font variations in a font.

OSStatus ATSUCountFontVariations (
                     ATSUFontID iFont,
                     ItemCount *oVariationCount);
iFont
A value of type ATSUFontID. Pass the ID of the font whose variations you want to count.

oVariationCount
A pointer to a count. On return, the number of font variations defined in the font. You cannot pass NULL for this parameter.

function result
A result code. The result code kATSUInvalidFontErr indicates that the ID does not correspond to any installed font. For a list of other ATSUI-specific result codes, see Result Codes.
DISCUSSION
The ATSUCountFontVariations function determines the number of font variations that are defined in a font.

VERSION NOTES
Available beginning with ATSUI 1.0.


© 2000 Apple Computer, Inc. – (Last Updated 25 Jan 00)